/* 学生页面整体布局 */
.student-layout {
  min-height: 100vh;
}

.student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: linear-gradient(90deg, #52c41a 0%, #237804 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: fixed;
  width: 100%;
  z-index: 1000;
  height: 64px;
}

.student-logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.student-header-right .ant-btn-link {
  color: white !important;
}

.student-header-right .ant-avatar {
  background-color: #f0f2f5;
  color: #52c41a;
}

/* 主要内容区布局 */
.student-layout > .ant-layout {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}

.student-main-layout {
  margin-left: 200px;
  transition: margin-left 0.2s;
}

.student-main-layout.collapsed {
  margin-left: 80px;
}

.student-content {
  padding: 24px;
  background: #f0f2f5;
  min-height: calc(100vh - 64px);
}

/* 侧边栏样式 */
.student-sider {
  height: calc(100vh - 64px);
  position: fixed;
  left: 0;
  top: 64px;
  z-index: 99;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  background: white !important;
}

.student-menu {
  height: 100%;
  border-right: none;
}

.student-menu .ant-menu-item {
  margin: 8px 16px;
  width: calc(100% - 32px);
  border-radius: 4px;
}

.student-menu .ant-menu-item:hover {
  background: #e6f7ff;
}

.student-menu .ant-menu-item-selected {
  background: #52c41a !important;
  color: white;
}

.student-breadcrumb {
  margin-bottom: 16px;
}

/* 欢迎卡片样式 */
.welcome-card {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-card h2 {
  margin-bottom: 8px;
  color: #52c41a;
  font-size: 24px;
}

.welcome-card p {
  color: #666;
  margin-bottom: 0;
}

/* 统计卡片样式 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card .ant-statistic-title {
  color: #666;
  font-size: 16px;
  margin-bottom: 16px;
}

.stat-card .ant-statistic-content {
  color: #52c41a;
  font-size: 28px;
}

.stat-card .ant-statistic-content-prefix {
  margin-right: 8px;
  font-size: 24px;
}

/* 表格样式 */
.table-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ant-table-thead > tr > th {
  background: #f8f9fa;
  color: #333;
}

.ant-table-tbody > tr:hover > td {
  background: #e6f7ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .student-main-layout {
    margin-left: 0 !important;
  }

  .student-content {
    padding: 16px;
  }

  .student-sider {
    display: none;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .student-header {
    padding: 0 16px;
  }
  
  .student-logo {
    font-size: 18px;
  }

  .welcome-card h2 {
    font-size: 20px;
  }
}
